libxl: convert an empty tap disk into a qdisk
authorIan Campbell <ian.campbell@citrix.com>
Fri, 8 Apr 2011 15:38:59 +0000 (16:38 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Fri, 8 Apr 2011 15:38:59 +0000 (16:38 +0100)
commit847ac5c71d200135c734d9961ee32e2b25c45657
tree5c4f60b4654a3aacb3a66db5346a3d92e615825f
parent77df1186c87076ab7dbab6e8c94091fd5bd11e0a
libxl: convert an empty tap disk into a qdisk

I'm not sure that empty disks which are is_cdrom are especially valid,
or that a cdrom can ever be handled by tapdisk anyway but try to do
something sane since it seems that xl's parse_disk_config() routine
could potentially generate such a configuration (although whether from
a valid input string or not I'm not sure).

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/libxl/libxl.c